/**
 * Copyright (c) Software Institute of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.modeler.uml.internal;

import org.eclipse.core.resources.IProject;

import edu.pku.sei.modeler.project.AbstractModelingProject;
import edu.pku.sei.modeler.project.IProjectFactory;

/**
 * @generated
 *
 */
public class GeneratedProjFactory implements IProjectFactory {

	/* (non-Javadoc)
	 * @see edu.pku.sei.modeler.project.AbstractProjectFactory#craeteProject(java.lang.String)
	 */
	public AbstractModelingProject createProject(IProject proj, String nature) {
		if(GeneratedProject.PROJECT_NATURE.equals(nature))
			return new GeneratedProject(proj, null);
		else return null;
	}

	/* (non-Javadoc)
	 * @see edu.pku.sei.modeler.project.AbstractProjectFactory#createAnyhow()
	 */
	public AbstractModelingProject createAnyhow(IProject proj) {
		return new GeneratedProject(proj, null);
	}

	/* (non-Javadoc)
	 * @see edu.pku.sei.modeler.project.AbstractProjectFactory#getNature()
	 */
	public String getNature() {
		return GeneratedProject.PROJECT_NATURE;
	}

}
